package com.gm.wholesale.module.report.api;

import android.util.ArrayMap;

import com.gm.commonlib.base.baseBean.BaseListResp;
import com.gm.commonlib.base.baseBean.BasePageData;
import com.gm.commonlib.base.baseBean.BaseResp;
import com.gm.commonlib.base.baseBean.DataResp;
import com.gm.wholesale.module.report.bean.CustormReportBean;
import com.gm.wholesale.module.report.bean.GoodReportBean;
import com.gm.wholesale.module.report.bean.ReportCustomBean;
import com.gm.wholesale.module.report.bean.ReportGoodBean;
import com.gm.wholesale.module.report.bean.SaleReportBean;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

public interface IReportApi {
    @GET("pda/api/v1/report/customer/sku")
    Observable<BasePageData<ReportGoodBean>> getReportCustomerSKU(@Query("customerID") long customerID);


    @GET("pda/api/v1/report/sku/customer")
    Observable<BasePageData<ReportCustomBean>> getReportSku(@Query("skuID") long skuID);



    @POST("pda/api/v1/report/sales")
    Observable<DataResp<SaleReportBean>> getSaleReport(@Body ArrayMap<String,Object> queryData);


    @POST("pda/api/v1/report/customer")
    Observable<BasePageData<CustormReportBean>> getCustomerReport(@Body ArrayMap<String,Object> queryData);


    @POST("pda/api/v1/report/sku")
    Observable<BasePageData<GoodReportBean>> getSKUReport(@Body ArrayMap<String,Object> queryData);

}
